package com.ethink.order.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ethink.framework.common.db.SuperEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 采购退单 数据库实体
 *
 * @author default
 * @date 2022-12-06
 */
@Data
@TableName("t_purchase_return_order")
public class PurchaseReturnOrder extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String PURCHASE_ORDER_NO ="purchase_order_no";

    public static final String RETURN_TYPE ="return_type";

    public static final String RETURN_STATUS ="return_status";

    public static final String RETURN_AMT ="return_amt";

    public static final String CREATE_USER_CODE ="create_user_code";

    public static final String CREATE_USER_NAME ="create_user_name";

    public static final String REASON ="reason";

    public static final String FLOW_ID ="flow_id";


    /** 采购退单号 */
    private String orderNo;

    /** 采购单号 */
    private String purchaseOrderNo;

    /** 枚举 退单类型:1-少货退款(s1)|2-退款退货(s2) */
    private Integer returnType;

    /** 枚举 订单状态:1-草稿(s1)|2-待审批(s2)|3-待退货(s3)|4-完成(s4) */
    private Integer returnStatus;

    /** 退款金额 */
    private BigDecimal returnAmt;

    /** 制单人编码 */
    private String createUserCode;

    /** 制单人名称 */
    private String createUserName;

    /** 退款原因 */
    private String reason;

    /** 审批流程ID */
    private String flowId;

}
